
#_______________________________________________________________________________________________________________________
#@ 类
class READ_TXT(object):
    #___________________________________________________________________________________________________________________
    #@ 初始化
    def __init__(self):
        pass
    #___________________________________________________________________________________________________________________
    #@ 将 txt 解析为 list
    def get_data_list(self,path,encodingParameter='utf-8'):
        #// 1.  读文件
        file = open(path,encoding=encodingParameter)
        #// 2. 将文件按照行放入链表
        lines = file.readlines()
        #// 3. 准备data链表
        list = []
        #// 4. 放入data链表
        for line in lines:
            temps = line.replace('\n','').split(',')
            for temp in temps:
                if len(temp)>0:
                    list.append(temp)
        return list